# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=gi-docgen
pkgver=2022.1
pkgrel=0
pkgdesc="A documentation generator for GObject-based libraries"
url="https://gitlab.gnome.org/GNOME/gi-docgen"
arch="noarch"
license="Apache-2.0 OR GPL-3.0-or-later"
depends="
	py3-jinja2
	py3-markdown
	py3-markupsafe
	py3-pygments
	py3-toml
	py3-typogrify
	python3
	"
makedepends="meson"
source="https://gitlab.gnome.org/GNOME/gi-docgen/-/archive/$pkgver/gi-docgen-$pkgver.tar.gz"

build() {
	abuild-meson . output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

check() {
	meson test --no-rebuild -v -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
93a4e887a764a2bf3e77a48220693c30c0e8b249e1de193c61f20235e514ad206dba4b99c81cd6791e525e6cd406c8dc3508c92fc52f6cc52ecf05632b9a7cb6  gi-docgen-2022.1.tar.gz
"
